If (Roles.IsUserInRole(TextBox1.Text, "AdminPageRights")) Then
   ' wykonaj tu jakie operacje
End If
